import request from '@/utils/request'

// 添加方案
export function yqfabufanganPOST(data) {
  return request({
    url: '/archive/yqfabufangan',
    method: 'POST',
    data: data
  })
}
//修改方案
export function yqfabufanganPUT(data) {
  return request({
    url: '/archive/yqfabufangan',
    method: 'PUT',
    data: data
  })
}

//方案列表
export function yqfabufanganList(query) {
    return request({
      url: '/archive/yqfabufangan/list',
      method: 'GET',
      params: query
    })
  }

 
//添加档案条目查询列表
export function daList(data) {
    return request({
      url: '/archive/yqfabufangan/daList?pageNum='+data.pageNum+"&pageSize="+data.pageSize,
      method: 'POST',
      data:data
    })
  }

//添加档案条目添加
export function addDaToFangan(data) {
  return request({
    url: '/archive/yqfabufangan/addDaToFangan',
    method: 'POST',
    data: data
  })
}

//添加档案条目根据检索条件添加
export function addAllDaToFangan(data) {
  return request({
    url: '/archive/yqfabufangan/addAllDaToFangan',
    method: 'POST',
    data: data
  })
}

//获取方案详情
export function yqfabufanganInfo(Id) {
  return request({
    url: '/archive/yqfabufangan/'+Id,
    method: 'GET',
  })
}

//查询方案内档案数据
export function selectDataOfFangan(query) {
  return request({
    url: '/archive/yqfabufangan/selectDataOfFangan',
    method: 'GET',
    params: query
  })
}
//鉴定任务列表查询
export function kfjdList(query) {
  return request({
    url: '/archive/yqfabufangan/kfjdList',
    method: 'GET',
    params: query
  })
}
//鉴定任务选择确定
export function addJianDingJobDa(data) {
  return request({
    url: '/archive/yqfabufangan/addJianDingJobDa',
    method: 'POST',
    data: data
  })
}


//发起流程

export function submitBjfb(query) {
  return request({
    url: '/archive/yqfabufangan/submitBjfb',
    method: 'PUT',
    params: query
  })
}

//待办列表
export function taskList(query) {
  return request({
    url: '/activiti/workflowArchiveBjfb/taskList',
    method: 'GET',
    params: query
  })
}

//已办列表
export function taskHistoryList(query) {
  return request({
    url: '/activiti/workflowArchiveBjfb/taskHistoryList',
    method: 'GET',
    params: query
  })
}
//离线下载元数据列表展示

export function showColumnst(query) {
  return request({
    url: '/archive/yqfabufangan/showColumns',
    method: 'GET',
    params: query
  })
}

//水印设置项查询
export function selectWater(query) {
  return request({
    url: '/archive/yqfabufangan/selectWater',
    method: 'GET',
    params: query
  })
}

//水印设置项保存
export function addFangAnWater(data) {
  return request({
    url: '/archive/yqfabufangan/addFangAnWater',
    method: 'post',
    data: data
  })
}


//水印设置文件列表
export function getFileList(query) {
  return request({
    url: '/archive/yqfabufangan/getFileList',
    method: 'GET',
    params: query
  })
}

//局域网在线发布
export function publishOnLine(data) {
  return request({
    url: '/archive/yqfabufangan/publishOnLine',
    method: 'POST',
    data: data
  })
}
//撤销发布
export function cancelPublish(query) {
  return request({
    url: '/archive/yqfabufangan/cancelPublish',
    method: 'POST',
    params: query
  })
}
//鉴定任务导入档案删除
export function yqfabufangandelet(query) {
  return request({
    url: '/archive/yqfabufangan',
    method: 'DELETE',
    params: query
  })
}